package com.esa.dbi.impl;

import java.util.List;

import com.esa.javabean.Account;
import com.esa.javabean.Choice;
import com.esa.javabean.Course;
import com.esa.javabean.Student;

public class test {
	public static void main(String args[]){
		/*Account accnt=new Account();
		AccountDBImpl adbi=new AccountDBImpl();
		accnt=adbi.getAccount("normal1");
		//System.out.println(accnt.getPassword());
		String str2="nor";
		String str1=accnt.getLevel();
		
		System.out.println(str2.equals(str1));*/
		/*accnt.setAcname("admin1");
		accnt.setPassword("321");*/
		/*Student stdt=new Student();
		StudentDBImpl sdbi=new StudentDBImpl();*/
		/*stdt.setSno("091251111");
		stdt.setSname("ÈíÔºa");
		stdt.setSex("1");
		stdt.setInsititute("soft");*/
		/*stdt=sdbi.getStudent("091250083");
		System.out.println(stdt.getSname());*/
		/*ChoiceDBImpl cdbi=new ChoiceDBImpl();
		List<Course> l=cdbi.getCoursesOfaStudent("091250080");
		//List<Student> l=cdbi.getStudentsOfaCource("001");
		Choice c=new Choice();
		c.setCno("009");
		c.setSno("091250083");
		c.setScore("90");
		
		//System.out.println(cdbi.addChoice(c));
		System.out.println(cdbi.deleteChoice("009", "091250083"));*/
		Course course=new Course();
		CourseDBImpl cbdi=new CourseDBImpl();
		course.setCno("009");
		course.setCname("course 008");
		course.setCredit("10");
		cbdi.updateCourse(course);
		System.out.println(cbdi.getCourseByCno("009").getCname());
		
	}

}
